package yogaModel

import "time"

type ReqCourse struct {
	Id          int       `json:"id"`
	TotalNumber int       `json:"total_number"`
	StartTime   int       `json:"start_time" binding:"required" required_err:"参数缺失【start_time】"`
	EndTime     int       `json:"end_time" binding:"required" required_err:"参数缺失【end_time】"`
	ClassHours  int       `json:"class_hours" binding:"required" required_err:"参数缺失【class_hours】"`
	Describe    string    `json:"describe" binding:"required" required_err:"参数缺失【describe】"`
	Cover       string    `json:"cover" binding:"required" required_err:"参数缺失【cover】"`
	SubMchId    string    `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	Name        string    `json:"name" binding:"required" required_err:"参数缺失【name】"`
	Price       float32   `json:"price" binding:"required" required_err:"参数缺失【price】"`
	Acid        int       `json:"acid"`
	Weight      int       `json:"weight"`
	LeaveCount  int       `json:"leave_count"`
	VenueId     int       `json:"venue_id" binding:"required" required_err:"参数缺失【venue_id】"`
	Enrollment  int       `json:"enrollment"`
	IsHome      int       `json:"is_home" binding:"required" required_err:"参数缺失【is_home】" `
	Points      int       `json:"points"`
	DeletedAt   time.Time `xorm:"deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
	GiftPoints  int       `json:"gift_points"`
	IsBuy       int       `xorm:"-" json:"is_buy"`
	VenueName   string    `xorm:"" json:"venue_name"`
	BuyCount    int       `json:"buy_count"`
}
type ReqCourseJoin struct {
	ReqCourse `xorm:"extends"`
	ClassId   int `json:"class_id"`
}
